//
//  AdderBecomeInCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/7/25.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "AdderBecomeInCell.h"

@interface AdderBecomeInCell ()
@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLab;
@property (weak, nonatomic) IBOutlet UIButton *goBtn;

@end

@implementation AdderBecomeInCell

- (void)awakeFromNib {
    [super awakeFromNib];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        self.goBtn.layer.borderWidth = 1;
        self.goBtn.layer.borderColor = RGBColor(24, 162, 222).CGColor;
    });
}
- (void)setImageName:(NSString *)imageName
{
    self.bgImageView.image = GetImage(imageName);
}
- (void)setNameStr:(NSString *)nameStr
{
    _nameStr = nameStr;
    self.titleLab.text = nameStr;
}
- (void)setSubNameStr:(NSString *)subNameStr
{
    _subNameStr = subNameStr;
    self.subTitleLab.text = subNameStr;
}
- (void)setBtnTag:(NSInteger)btnTag
{
    _btnTag = btnTag;
    self.goBtn.tag = btnTag;
}
- (IBAction)goClick:(UIButton *)btn
{
    if (self.btnClickBlock) {
        self.btnClickBlock(btn.tag);
    }
}


@end
